<?php
set_include_path(get_include_path() . PATH_SEPARATOR . '.' . PATH_SEPARATOR . './libs/');
require_once('./libs/Smarty/Smarty.class.php');
require_once('./libs/classes/dbconection.class.php');
require_once('./libs/classes/fenye.class.php');
require_once('Zend/Config/Xml.php');
$pageInfo = new Zend_Config_Xml('./config/config.xml','page');
$pageInfo= $pageInfo->toArray();
$perpage = $pageInfo['perpages'];
$temp = Fenye::count(1);
$abc= Fenye::fenyelink($temp,5);
foreach($abc as $abcx)
{
	$links .= "&nbsp;<a href=#?page=$abcx>$abcx</a>";
}
echo $links;
echo "<br />";
echo $perpage;
$pages = ceil($temp['C']/$perpage);
echo "<br />";
echo $pages;
for($i=1;$i<=$pages;$i++)
{
	$tepm .= '&nbsp;<a href="lsjdlfkj?page="'.$i.'>'.$i.'</a>';
}
echo $tepm;
echo "<br />";


$tepm2='<select>';
for($i=1;$i<=$pages;$i++)
{
	$tepm2 .='<option value='.$i.'>'.$i.'</option>';
}
$tepm2.='</select>';
echo $tepm2;
?>